#!usr/bin/env python  
#@time: 2018/01/19 
# f = open('./test.txt','w')
# f.write('Demo Game')
# f.close()

# 第二种写法 with 默认方法 可以自动调用close()方法
with open('./test.txt','a') as f:
    f.write("Hello Simon \n")

